package org.aphelie.torg.ruler.internal.core.text;

import java.io.Serializable;

public interface IDocumentTextNode extends IDocumentRange, Serializable, IDocumentXMLNode {

    public static final String F_PROPERTY_CHANGE_TYPE_PCDATA = "type_pcdata"; //$NON-NLS-1$

    // Used by text edit operations
    void setEnclosingElement(IDocumentElementNode node);

    IDocumentElementNode getEnclosingElement();

    void setText(String text);

    String getText();

    void setOffset(int offset);

    void setLength(int length);

    // Not used by text edit operations
    public void reconnect(IDocumentElementNode parent);

    // Not used by text edit operations
    public String write();

}
